import request from '@/utils/request'

// 查询烟田旺长期列表
export function listGrowth(query) {
  return request({
    url: '/system/growth/list',
    method: 'get',
    params: query
  })
}

// 查询烟田旺长期详细
export function getGrowth(id) {
  return request({
    url: '/system/growth/' + id,
    method: 'get'
  })
}

// 新增烟田旺长期
export function addGrowth(data) {
  return request({
    url: '/system/growth',
    method: 'post',
    data: data
  })
}

// 修改烟田旺长期
export function updateGrowth(data) {
  return request({
    url: '/system/growth',
    method: 'put',
    data: data
  })
}

// 删除烟田旺长期
export function delGrowth(id) {
  return request({
    url: '/system/growth/' + id,
    method: 'delete'
  })
}
